<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext['request'].contextPath}"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>登录</title>
    <link rel="stylesheet" type="text/css" href="${ctx}/static/css/all.css"/>
    <script type="text/javascript">
        // 登录
        function login(){
            $('#login_form').submit();
        }
    </script>
</head>
<body id="login">
<div id="sitewrapper">
    <div id="header" style="font-size: 36px;text-align: center;height: 60px;">
        面包英语CMS系统
    </div>
    <div id="content">
        <div id="main">
            <h1>用户登录</h1>

            <form id="login_form" action="${ctx}/account/forwardMains.html" method="post" name="login_form">
                <div id="email">
                    <fieldset id="user-email">
                        <p>
                            <label>登录名<span><input type="text" name="j_username" tabindex="1" value=""/></span></label>
                        </p>
                    </fieldset>
                </div>
                <div id="password">
                    <fieldset id="user-password">
                        <p>
                            <label>密码<span><input type="password" name="j_password" tabindex="2" value=""/></span></label>
                        </p>
                    </fieldset>
                </div>
                <div style="padding: 5px 0 0 15px; font-size: 12px;">
                    <span style="color:red">
                        <c:if test="${SPRING_SECURITY_LAST_EXCEPTION.message != null && SPRING_SECURITY_LAST_EXCEPTION.message != ''}">
                            <c:out value="${SPRING_SECURITY_LAST_EXCEPTION.message}"/>
                        </c:if>
                    </span>
                </div>
                <!--
                 <div style="padding: 5px 0 0 15px; font-size: 12px;">
                     <input id="_spring_security_remember_me" name="_spring_security_remember_me" type="checkbox" value= "true" /> 记住我，30天内不用再登录</label>
                 </div>
                 -->
                <div style="padding: 5px 20px 0 0; text-align: right;">
                    <a href="#" class="easyui-linkbutton" onclick="javascript:login();">登&nbsp;&nbsp;&nbsp;&nbsp;录</a>
                    &nbsp;&nbsp;<%--<a href="javascript:;" onclick="forgotPassword()" class="easyui-linkbutton">忘记密码</a>--%>
                </div>
            </form>
        </div>
    </div>
</div>
</body>
</html>